package org.dev.vlp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName vlp_proverb
 */
@TableName(value ="vlp_proverb")
@Data
public class Proverb implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer rowId;

    /**
     * 
     */
    private String sentence;

    /**
     * 
     */
    private String meaning;

    /**
     * 
     */
    private String ch;

    /**
     * 
     */
    private Integer lan;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Proverb other = (Proverb) that;
        return (this.getRowId() == null ? other.getRowId() == null : this.getRowId().equals(other.getRowId()))
            && (this.getSentence() == null ? other.getSentence() == null : this.getSentence().equals(other.getSentence()))
            && (this.getMeaning() == null ? other.getMeaning() == null : this.getMeaning().equals(other.getMeaning()))
            && (this.getCh() == null ? other.getCh() == null : this.getCh().equals(other.getCh()))
            && (this.getLan() == null ? other.getLan() == null : this.getLan().equals(other.getLan()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRowId() == null) ? 0 : getRowId().hashCode());
        result = prime * result + ((getSentence() == null) ? 0 : getSentence().hashCode());
        result = prime * result + ((getMeaning() == null) ? 0 : getMeaning().hashCode());
        result = prime * result + ((getCh() == null) ? 0 : getCh().hashCode());
        result = prime * result + ((getLan() == null) ? 0 : getLan().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", rowId=").append(rowId);
        sb.append(", sentence=").append(sentence);
        sb.append(", meaning=").append(meaning);
        sb.append(", ch=").append(ch);
        sb.append(", lan=").append(lan);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}